<% #endcoding:utf-8 %>
<% cuser=User.find(params[:id]) %>
<%if isfactory?(cuser)%>
<div class="panel">
  <div class="panel-heading">
    <h3 class="demand-top">我的名片</h3>
  </div>
  <div class="panel-body">
    <%=render partial: "factory_name_card"%>
    <% if current_user?(cuser.id)%>
    <p class="text-center" style="margin-top:15px"><%=link_to "完善资料","/editprofile",:class=>"btn btn-default"%>，让咨询师能联系到您</p>
    <%end%>
  </div>
</div>
<%else%>
<div class="panel">
  <div class="panel-heading">
    <h3 class="demand-top">我的名片</h3>
  </div>
  <div class="panel-body">
    <%=render partial: "counselor_name_card"%>
    <% if current_user?(cuser.id)%>
    <p class="text-center" style="margin-top:15px"><%=link_to "完善资料","/editprofile",:class=>"btn btn-success"%>，让企业能联系到您</p>
    <%end%>
  </div>
</div>
<%end%>